package com.halfsword.creativecraft.block.custom.machine.blockentity;

import com.halfsword.creativecraft.CreativeCraft;
import com.halfsword.creativecraft.block.BlockLoader;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class TileEntities {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES =
            DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, CreativeCraft.MOD_ID);


    public static final RegistryObject<BlockEntityType<SpaceShardCollectorMachineBlockEntity>> SPACE_SHARD_COLLECTOR_MACHINE_BE =
            BLOCK_ENTITIES.register("space_collector_be",()-> BlockEntityType.Builder.of(SpaceShardCollectorMachineBlockEntity::new, BlockLoader.SPACE_SHARD_COLLECTOR_MACHINE.get()).build(null))  ;


    public static final RegistryObject<BlockEntityType<SteamPowerCrusherBlockEntity>> STEAM_POWER_CRUSHER_BE =
            BLOCK_ENTITIES.register("steam_crusher_be",()-> BlockEntityType.Builder.of(SteamPowerCrusherBlockEntity::new, BlockLoader.SPACE_SHARD_COLLECTOR_MACHINE.get()).build(null))  ;
    public static void register(IEventBus eventBus) {
        BLOCK_ENTITIES.register(eventBus);
    }
}
